package top.yaofengqiao.springcloudsimple.payment.biz.infrastructure.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.yaofengqiao.springcloudsimple.payment.biz.infrastructure.po.PaymentOrderPO;

import java.util.List;

/**
 * @author 姚凤桥
 * @description 针对表【p_payment_order(支付订单表)】的数据库操作Mapper
 */
@Mapper
public interface PaymentOrderMapper extends BaseMapper<PaymentOrderPO> {

    void orderTrading(@Param("orderId") Long orderId, @Param("content") String content);

    void changeStatus(@Param("rechargeOrderNo") String rechargeOrderNo,
                      @Param("origin") Integer origin,
                      @Param("target") Integer target);

    List<PaymentOrderPO> queryUnPaymentOrder(@Param("startId") long startId,
                                             @Param("limit") int limit);
}




